package com.zhao.service.serviceImpl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhao.mapper.DatafileMapper;
import com.zhao.pojo.Datafile;
import com.zhao.service.DatafileService;
import org.springframework.stereotype.Service;

@Service
public class DatafileServiceImpl extends ServiceImpl<DatafileMapper, Datafile> implements DatafileService {
    @Override
    public Page<Datafile> selectListPage(Integer pageNum, Integer size, String title,String author,String show) {
        // 新建分页
        Page<Datafile> page = new Page<Datafile>(pageNum, size);

        // 返回分页结果 like 为模糊查询条件
        return page.setRecords(this.baseMapper.dyGetUserList(page,title,author,show));

    }
}
